package com.zzxy.mybatis.dao;

import com.zzxy.mybatis.entity.User;
import org.apache.ibatis.session.SqlSession;

public class UserDaoImpl {
    SqlSession sqlSession;

    public UserDaoImpl(SqlSession sqlSession) {

        this.sqlSession = sqlSession;
    }


    public User findUserByDao(int id) {
        User user=sqlSession.selectOne("findUserById",id);
        return user;
    }
}
